mkdir Command
ls Command
echo Command
touch Command
nano Command
batcat Command
clear Command
ll Command
cat Command
cat write
cat append
rmdir Command
rm command
echo Command
mv Command
more Command
Regex Commands
diff Command
bc Command
man Command : man mkdir
calendar Command
date Command
wc Command
pwd Command
passwd Command
history Command
cmp Command
shutdown Command
cp Command
mv Command
mkdir Command
cd Command
rmdir Command
rm Command
ls Command
wc Command
more Command
Wildcard Commands
Creating a file and opening it in vi Editor.
Typing data in vi Editor Navigating to Insert mode by pressing “a” key.
Command Mode :wq command to save and exit
the file.
:w! command to write the above content to
particular file.
: n, m w! command to write from line n to m at
particular file.
:q! Quit file without saving
Searching text in vi Editor
/ and ? commands
Press “n” key to repeat last command
Copy and Paste Commands
xp Command : Transpose two Characters
yy Command : Copy to General Buffer “3yy” and
then “p”
Storing Yank into buffered name “ayy on 4th line
will save that line into buffer named “a”
“byy on 5th line will save that line into buffer
named b”
“aP to print text on next line which is in buffered
named “a”
“bp to print text which is in buffered named “b”
Customize the vi Editor using :set Commands
:set nu Command
:set showmode command, shows us the Mode at
bottom of prompt
:set noshowmode Command, does not show the
mode of vi editor.
Ignore Case for Searching and Replacing
By default vi Editor is Case Sensitive.
:set ic For ignoring case.
:set noic For setting mode as Case Sensitive
Print the Greatest Number
Number Tables
Check if Number is Prime or Composite
Factorial of a Number
Fibonacci Series
Palindrome String
Menu Driven Program using CASE Statement
Armstrong Number
Simple AWK Programs
Chmod Command
Create and Manager Users and Groups
Creating a User
Updating a User
Adding a Group
Adding User to Group
Updating a Group
Monitor Disk Usage
df Command
du Command
find Command
dd Command
Gcc Command
Redirection
Grep Command
Sarvesh Anand Mankar 142203013 Comp Div-2